home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / FARMALOC.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  278 b   |  13 lines

  1. /* farmalloc.c --- p. 133 */
  2. # include <stdio.h>
  3. # include <alloc.h>
  4. main()
  5. {
  6.     int far *bigblock;
  7.     if(( bigblock = farmalloc(80000L)) == NULL)
  8.     {
  9.         printf("Memory allocation failed!\n");
  10.         exit(1);
  11.     }
  12.     printf("Block of 80,000 bytes allocated at %Fp\n", bigblock);
  13. }